Function Reference

_ClipPutFile

Copy Files to Clipboard Like Explorer does

#include <Misc.au3>
_ClipPutFile($sFile [, $sSeperator])

 

Parameters

$sFile Full Path to File(s)
$sSeperator Seperator for multiple Files, Default = '|'

 

Return Value

Success: True
Failure: False
@ERROR: 1 - Unable to Open Clipboard
2 - Unable to Empty Cipboard
3 - GlobalAlloc Failed
4 - GlobalLock Failed
5 - Unable to Create H_DROP
6 - Unable to Update Clipboard
7 - Unable to Close Clipboard
8 - GlobalUnlock Failed

 

Remarks

To Retrive a list of Files stored in the Clipboard use ClipGet().

 

Related

ClipGet, ClipPut

 

Example


#include "misc.au3"
Local $fTest
$fTest = _ClipPutFile(@ScriptFullPath)
If Not $fTest Then
    MsgBox(0,"_ClipPutFile() call Failed","@error = " & @error)
Else
    MsgBox(0,"_ClipPutFile()","Content of Clipboard:" & ClipGet())
EndIf